//------------------------------------------------------------------------------------------------- 
// <copyright file="SA1123DoNotPlaceRegionsWithinElements.cs" company="StyleCop for ReSharper Development Team">
// Copyright (c) StyleCop for ReSharper Development Team. All rights reserved.
// </copyright>
// <summary>Defines the SA1123DoNotPlaceRegionsWithinElements type.</summary>
//-------------------------------------------------------------------------------------------------

namespace StyleCop.For.ReSharper.TestProject.Readability
{
    #region Using Directives

    using System;

    #endregion

    /// <summary>
    /// Example file for SA1123DoNotPlaceRegionsWithinElements.
    /// </summary>
    [Serializable]
    public class SA1123DoNotPlaceRegionsWithinElements
    {
        #region Constructors

        /// <summary>
        /// Initializes a new instance of the SA1123DoNotPlaceRegionsWithinElements class.
        /// </summary>
        public SA1123DoNotPlaceRegionsWithinElements()
        {
            #region This should be removed

            var value1 = "value1";
            var value2 = "value2";
            var value3 = "value3";
            Console.WriteLine(string.Concat(value1, value2, value3));

            #endregion
        }

        #endregion

        #region Public Methods

        /// <summary>
        /// Method 1 summary.
        /// </summary>
        /// <param name="arg1">Arg 1 text.</param>
        /// <returns>A bool in the return.</returns>
        public bool Method1(string arg1)
        {
            if (string.IsNullOrEmpty(arg1))
            {
                #region This region is not allowed here.

                return false;

                #endregion
            }

            return true;
        }

        #endregion
    }
}